'''
Created on 11/09/2010

@author: lctr30
'''
import pygtk
pygtk.require('2.0')
import gtk

class Label(gtk.Label):
    
    DEFAULT_PADDING = 5
    
    def __init__(self, str=None):
        gtk.Label.__init__(self,str)
        
    def set_bold(self):
        text = self.get_text()
        self.set_use_markup(True)
        self.set_markup('<b>' + text + '</b>')
        
    
    @staticmethod 
    def get_bold_label(label=None, text=None):
        if label is None :
            label = gtk.Label('')
        if text is None:
            text = label.get_text()
        label.set_use_markup(True)
        label.set_markup('<b>' + text + '</b>')
        return label


